home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / WE-BREAK.ZIP / P4DEF_04.INC < prev    next >
Encoding:
Text File  |  1997-02-28  |  4.6 KB  |  131 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //
  4. // p4def_04.inc
  5. //
  6. // Written By: Paul T. Dawson
  7. //             ptdawson@voicenet.com
  8. //             http://www.voicenet.com/~ptdawson
  9. //
  10. // All code and techniques are PUBLIC DOMAIN - have fun with it!
  11. //
  12. //------------------------------------------------------------------->
  13. //
  14. // This file builds one of the "dummies".
  15. //
  16. //------------------------------------------------------------------->
  17. //
  18. // Declare the *textures* for everything.
  19.  
  20.         #declare P4_Eye_Texture = texture { pigment { Gray80 } }
  21.         #declare P4_Glasses_Texture = texture { pigment{Gray50} }
  22.         #declare P4_Hair_Texture = texture { pigment { Gray60 } }
  23.         #declare P4_Hat_Texture = texture { pigment {
  24.                 checker Black,White scale <100,100,100> } }
  25.         #declare P4_Lip_Texture = texture { pigment { Gray10 } }
  26.         #declare P4_Shirt_Texture = texture {
  27.                 pigment { Gray30 } normal { crackle 4 scale 1 } }
  28.         #declare P4_Shoe_Texture = texture { pigment{ Gray50 } }
  29.         #declare P4_Shorts_Texture = texture {
  30.                 pigment { Gray60 } normal { crackle 2 } }
  31.         #declare P4_Skin_Texture = texture { pigment { Gray70 } }
  32.  
  33. //------------------------------------------------------------------->
  34. //
  35. // Now choose *types* of things. You will have to read the directions
  36. // to see what numbers are legal here!
  37.  
  38.         #declare P4_Eye_Type = 1
  39.         #declare P4_Glasses_Type = 0
  40.         #declare P4_Hair_Type = 3
  41.         #declare P4_Hand_Type = 1
  42.         #declare P4_Hat_Type = 0
  43.         #declare P4_Mouth_Type = 1
  44.         #declare P4_Nose_Type = 1
  45.         #declare P4_Shirt_Type = 2
  46.         #declare P4_Shoe_Type = 3
  47.         #declare P4_Shorts_Type = 3
  48.  
  49. //------------------------------------------------------------------->
  50. //
  51. // Set the sizes of various things.
  52.  
  53.         #declare P4_Leg_Length = 34
  54.         #declare P4_Neck_Height = 3
  55.         #declare P4_Shirt_Height = 22
  56.         #declare P4_Shorts_Height = 14
  57.  
  58. //------------------------------------------------------------------->
  59. //
  60. // Choose the rotation values. Please read the directions!
  61.  
  62.         #declare P4_Hat_Rotate = < 10, 20, 0 >
  63.         #declare P4_Neck_Rotate = < -10, 10, 0 >
  64.         #declare P4_Waist_Rotate = < -10, 20, 0 >
  65.  
  66.         #declare P4_Left_Hand_Rotate = < 0, 0, 0 >
  67.         #declare P4_Right_Hand_Rotate = < 0, 0, 0 >
  68.  
  69.         #declare P4_Left_Elbow_Rotate = < 00, -80, 0 >
  70.         #declare P4_Right_Elbow_Rotate = < 00, 80, 0 >
  71.  
  72.         #declare P4_Left_Eyelid_Rotate = -40
  73.         #declare P4_Right_Eyelid_Rotate = -40
  74.  
  75.         #declare P4_Left_Knee_Rotate = < -20, 0, 0 >
  76.         #declare P4_Right_Knee_Rotate = < -10, 0, 0 >
  77.  
  78.         #declare P4_Left_Leg_Rotate = < 20, 0, -10 >
  79.         #declare P4_Right_Leg_Rotate = < 10, 0, 10 >
  80.  
  81.         #declare P4_Left_Shoulder_Rotate = < -30, -20, 50 >
  82.         #declare P4_Right_Shoulder_Rotate = < -30, -10, -70 >
  83.  
  84. //------------------------------------------------------------------->
  85. //
  86. // Create the optional "holding" object. This will go into the left
  87. // hand, and move with the hand. This is optional - just comment it
  88. // out if not needed, and set the flag to "false".
  89. //
  90. // The flag is necessary to prevent person #2 from carrying the object
  91. // that you gave to person #1. Set it to true or false.
  92.  
  93.         #declare P4_Holding_Flag = false
  94.  
  95. //------------------------------------------------------------------->
  96. //
  97. // Make another optional object - a "bracelet". This also has a flag
  98. // to set on/off. This prevents duplicate bracelets! The bracelet
  99. // should be at <0,0,0>, just like a standard torus.
  100.  
  101.         #declare P4_Bracelet_Flag = false
  102.  
  103. //------------------------------------------------------------------->
  104. //
  105. // Despite my attempts at using "realistic inches" as units, the
  106. // people always seem to end up 8 or 9 feet tall. This variable lets
  107. // you scale the person down to a normal size. Use the P4_TEST.POV
  108. // scene to see how tall your person actually is!
  109.  
  110.         #declare P4_Total_Scale = 80/100
  111.  
  112. //------------------------------------------------------------------->
  113. //
  114. // This is the height to move the person up, so his/her feet are on
  115. // the floor. Sorry, but because of bendable legs, this has to be
  116. // adjusted manually (by YOU). 8-)
  117.  
  118.         #declare P4_Y_Adjust = 28
  119.  
  120. //------------------------------------------------------------------->
  121. //
  122. // Now call "p4_main.inc" to create the object.
  123.  
  124.         #include "p4_main.inc"
  125.  
  126. //------------------------------------------------------------------->
  127. //
  128. // End of this file.
  129.  
  130.  
  131.